<!DOCTYPE html>
<html>
<head>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/statics/js/html5.js"></script>
    <![endif]-->
    <meta charset="utf-8">
    <meta name="format-detection" content="telephone=no"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>{$site_seo_title}</title>
    <meta name="keywords" content="{$site_seo_keywords}"/>
    <meta name="description" content="{$site_seo_description}"/>
    <tc_include file="Public:common_statics_file"/>
</head>
<body class="bgf4" oncontextmenu=self.event.returnValue=false onselectstart="return false">
<!--wrap-->
<div class="wrap">
    <tc_include file="Public:header"/>
    <div class="mgt24 xsmgt20 mgb25 xsmgb20">
        <div class="container bgw">
            <div class="row">
                <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6" aos="fade-up" aos-easing="ease-in-sine" aos-duration="1000">
                    <div class="pdt45 xspdt30  pdb115 xspdb30">
                        <div class="bor-r pdl35 pdr35 xslr0 pdt20 pdb30">
                            <p class="fs24 mdf20 smf18 xsf16 cor5">请您留下需求信息，我们将主动给予联络</p>
                            <form action="{:leuu('feedback/post')}" method="post" id="feedback_form">
                                <div class="ovh mgt35 xsmgt20">
                                    <div class="pull-left w86 h52 lh52 cor5">*你的称呼：</div>
                                    <div class="mgl86">
                                        <input id="tname" class="in2 db ww h52 lh52 bore pdl10" type="text" name="name" placeholder="输入您的称呼（必填）">
                                    </div>
                                </div>
                                <div class="ovh mgt15 xsmgt10">
                                    <div class="pull-left w86 h52 lh52 cor5">*你的电话：</div>
                                    <div class="mgl86">
                                        <input id="mobile" class="in2 db ww h52 lh52 bore pdl10" type="tel" name="tel" placeholder="请输入您的电话（必填）">
                                    </div>
                                </div>
                                <div class="ovh mgt15 xsmgt10">
                                    <div class="pull-left w86 h52 lh52 cor5">所在公司：</div>
                                    <div class="mgl86">
                                        <input class="in2 db ww h52 lh52 bore pdl10" type="text" name="company" placeholder="请输入您的公司">
                                    </div>
                                </div>
                                <div class="mgt35 xsmgt20">
                                    <div class="mgl86"><button id="submit2" type="button" class="ww h52 fs18 corw text-center bgFF7116 hov8">确定提交</button></div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6" aos="fade-up" aos-easing="ease-in-sine" aos-duration="1300">
                    <div class="pdt45 xspdt20  pdb115 xspdb30">
                        {$page1.content|htmlspecialchars_decode}
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="/statics/js/jquery.form.js"></script>
    <script>
        $('#submit2').click(function(){
            var url = $("#demand_form").attr('action')
            var tname=$("#tname").val();
            if(tname==''){
                alert('称呼不能为空！');
                return false;
            }

            var mobile=$("#mobile").val();
            var mobile_regex = /^1[3,5,6,7,8,9]\d{9}$/;
            if (!mobile_regex.test(mobile)) {
                alert('请输入11位手机号码！');
                return false;
            }
            $("#feedback_form").ajaxSubmit({
                url:url,
                type: "POST",
                dataType: "json",
                success:function(data){
                    if(data.status === '0'){
                        alert(data.info);
                    }else{
                        alert(data.info);
                        location.reload();
                        //$(".verify_img").trigger('click');
                    }
                },
                error:function () {
                    alert('网络异常');
                }
            });
        });
    </script>
    <tc_include file="Public:footer"/>
</div>
<!--wrap End-->
</body>
</html>